<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
    >

	<Style x:Key="DataGridStyle" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Setter Property="Background" Value="Transparent"/>
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>

								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style x:Key="{x:Type Custom:DataRow}" TargetType="{x:Type Custom:DataRow}">
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{StaticResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FFFFFFFF" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FFFFFFFF" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStylePesquisaCliente" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Ativo">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="Inativo">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleOrdensNegocios" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Casado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="CasdaParte">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleOrdensMegaBolsa" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Casado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="CasdaParte">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleCasamentoPreBoleto" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding TipoSituacaoCasamento}" Value="Parcial">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding TipoSituacaoCasamento}" Value="Total">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding TipoSituacaoCasamento}" Value="Nada">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>

									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{StaticResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleDigitacaoRapidaOrdem" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Setter Property="Background" Value="Transparent"/>
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>

								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style x:Key="{x:Type Custom:DataRow}" TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Padrao">
											<Setter Property="Foreground" Value="{DynamicResource VerdaAguaBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
									</Style.Triggers>

									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{StaticResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FFFFFFFF" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FFFFFFFF" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleDigitacaoOrdemSimplificada" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Setter Property="Background" Value="Transparent"/>
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>

								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style x:Key="{x:Type Custom:DataRow}" TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Padrao">
											<Setter Property="Foreground" Value="{DynamicResource VerdaAguaBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="Zerada">
											<Setter
											Property="Foreground"
											Value="{DynamicResource AzulClaroBrush}" />
										</DataTrigger>
									</Style.Triggers>

									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{StaticResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FFFFFFFF" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FFFFFFFF" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleBatimentoMesaAuxiliar" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Bateu">
											<Setter Property="Foreground" Value="{DynamicResource MagentaBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="AfterBatido">
											<Setter Property="Foreground" Value="Aqua" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="AfterNaoBatido">
											<Setter Property="Foreground" Value="Orchid" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleBoletasCompraVenda" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Bateu">
											<Setter Property="Foreground" Value="{DynamicResource MagentaBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="AfterBatido">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="AfterNaoBatido">
											<Setter Property="Foreground" Value="{DynamicResource FontColor}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleNegociosDisponiveis" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
                    <DataTrigger Binding="{Binding TipoSituacao}" Value="NaoCasadas">
                      <Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding TipoSituacao}" Value="CasadasParte">
                      <Setter Property="Foreground" Value="{DynamicResource VerdeAguaBrush}" />
                    </DataTrigger>
                  </Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleConsultaOrdensNegocios_Negocios" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding TipoSituacao}" Value="Casadas">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding TipoSituacao}" Value="NaoCasadas">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding TipoSituacao}" Value="CasadasParte">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleConsultaOrdensNegocios_Ordem" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding TipoSituacao}" Value="Casadas">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding TipoSituacao}" Value="NaoCasadas">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding TipoSituacao}" Value="CasadasParte">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="DataGridStyleConsultaOrdensNegocios" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="SomenteBMF">
											<Setter Property="Foreground" Value="{DynamicResource PretoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="SomenteSinacor">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource VerdeEscuroBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleLiquidacaoLiquidante" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>

								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Azul">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="Vermelho">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="Verde">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>

								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleConsultaSaldoCliente" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding StatusSaldo}" Value="ContaCorrente">
											<Setter Property="Foreground" Value="{DynamicResource AzulClaroBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding StatusSaldo}" Value="ContaCorrenteSaldoAtual">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding StatusSaldo}" Value="ContaInvestimento">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding StatusSaldo}" Value="ContaInvestimentoSaldoAtual">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleConsultaSaldoLiquidante" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding CodigoGrupo}" Value="1">
											<Setter Property="Foreground" Value="{DynamicResource AzulClaroBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding CodigoGrupo}" Value="100">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleConsultaSaldoBancos" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Identificador}" Value="SubTotal">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Identificador}" Value="Total">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleLiquidacaoPapeisLiquidante" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding IsIndicadorFinanceiroLiquidante}" Value="True">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding IsIndicadorFinanceiroLiquidante}" Value="False">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding isAlterado}" Value="True">
											<Setter Property="FontWeight" Value="ExtraBold" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleLiquidacaoClientes" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Status}" Value="Verde">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Status}" Value="Azul">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Status}" Value="Vermelho">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
									<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
									<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleConsultaNetGeral" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Padrao">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="Executadas">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="Digitadas">
											<Setter Property="Foreground" Value="{DynamicResource MagentaBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="After">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

	<Style x:Key="datagridStyleConsultaNetClienteCorretora" TargetType="{x:Type Custom:DataGridControl}">
		<Style.BasedOn>
			<Style TargetType="{x:Type Custom:DataGridControl}">
				<Style.Resources>
					<ResourceDictionary>
						<ResourceDictionary.MergedDictionaries>
							<ResourceDictionary>
								<Style TargetType="{x:Type Custom:TableView}">
									<Setter Property="ShowRowSelectorPane" Value="False" />
								</Style>
								<Style TargetType="{x:Type Custom:ColumnManagerRow}">
									<Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
									<Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
								</Style>
								<Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
									<Setter Property="Background" Value="Gray"/>
								</Style>
								<Style TargetType="{x:Type Custom:DataRow}">
									<Style.Triggers>
										<DataTrigger Binding="{Binding Situacao}" Value="Padrao">
											<Setter Property="Foreground" Value="{DynamicResource VerdaAguaBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
											<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
										</DataTrigger>
										<DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
											<Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
										</DataTrigger>
									</Style.Triggers>
									<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
									<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
								</Style>
								<Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
									<Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
									<Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
								</Style>
								<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
									<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
									<Setter Property="Template">
										<Setter.Value>
											<ControlTemplate TargetType="{x:Type ScrollBar}">
												<Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
													<Grid.RowDefinitions>
														<RowDefinition MaxHeight="18"/>
														<RowDefinition Height="0.00001*"/>
														<RowDefinition MaxHeight="18"/>
													</Grid.RowDefinitions>

													<RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>

													<Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
														<Track.Thumb>
															<Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
														</Track.Thumb>
														<Track.IncreaseRepeatButton>
															<RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
														</Track.IncreaseRepeatButton>
														<Track.DecreaseRepeatButton>
															<RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
														</Track.DecreaseRepeatButton>
													</Track>

													<RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
														<Grid>
															<Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
														</Grid>
													</RepeatButton>
												</Grid>

												<ControlTemplate.Triggers>
													<Trigger Property="Orientation" Value="Horizontal">

														<Setter Property="LayoutTransform" TargetName="GridRoot">
															<Setter.Value>
																<RotateTransform Angle="-90"/>
															</Setter.Value>
														</Setter>

														<Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

														<Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
														<Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
														<Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
													</Trigger>
												</ControlTemplate.Triggers>
											</ControlTemplate>
										</Setter.Value>
									</Setter>
								</Style>
							</ResourceDictionary>
						</ResourceDictionary.MergedDictionaries>
					</ResourceDictionary>
				</Style.Resources>
			</Style>
		</Style.BasedOn>
	</Style>

  <Style x:Key="datagridStyleBoletoCompraVenda" TargetType="{x:Type Custom:DataGridControl}">
    <Style.BasedOn>
      <Style TargetType="{x:Type Custom:DataGridControl}">
        <Style.Resources>
          <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
              <ResourceDictionary>
                <Style TargetType="{x:Type Custom:TableView}">
                  <Setter Property="ShowRowSelectorPane" Value="False" />
                </Style>
                <Style TargetType="{x:Type Custom:ColumnManagerRow}">
                  <Setter Property="Background" Value="{DynamicResource HeaderBackgroundColor}" />
                  <Setter Property="Foreground" Value="{DynamicResource HeaderForegroundColor}"/>
                </Style>
                <Style x:Key="basicSplitter_style" TargetType="{x:Type Custom:FixedColumnSplitter}">
                  <Setter Property="Background" Value="Gray"/>
                </Style>
                <Style TargetType="{x:Type Custom:DataRow}">
                  <Style.Triggers>
                    <DataTrigger Binding="{Binding Situacao}" Value="MarcadoInclusao">
                      <Setter Property="Foreground" Value="{DynamicResource BrancoBrush}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding Situacao}" Value="NaoCasado">
                      <Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding Situacao}" Value="ParcialmenteCasado">
                      <Setter Property="Foreground" Value="{DynamicResource VerdeBrush}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding Situacao}" Value="TotalmenteCasado">
                      <Setter Property="Foreground" Value="{DynamicResource AzulBrush}" />
                    </DataTrigger>
                  </Style.Triggers>
                  <Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{DynamicResource basicSplitter_style}"/>
                  <Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
                </Style>
                <Style x:Key="{x:Type Custom:TableViewScrollViewer}" TargetType="{x:Type Custom:TableViewScrollViewer}">
                  <Setter Property="HorizontalScrollBarVisibility" Value="Auto"></Setter>
                  <Setter Property="VerticalScrollBarVisibility" Value="Auto"></Setter>
                </Style>
                <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
                  <Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
                  <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                  <Setter Property="Template">
                    <Setter.Value>
                      <ControlTemplate TargetType="{x:Type ScrollBar}">
                        <Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
                          <Grid.RowDefinitions>
                            <RowDefinition MaxHeight="18"/>
                            <RowDefinition Height="0.00001*"/>
                            <RowDefinition MaxHeight="18"/>
                          </Grid.RowDefinitions>

                          <RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
                            <Grid>
                              <Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
                            </Grid>
                          </RepeatButton>

                          <Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
                            <Track.Thumb>
                              <Thumb Style="{DynamicResource ThumbStyle}" Width="10"/>
                            </Track.Thumb>
                            <Track.IncreaseRepeatButton>
                              <RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
                            </Track.IncreaseRepeatButton>
                            <Track.DecreaseRepeatButton>
                              <RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
                            </Track.DecreaseRepeatButton>
                          </Track>

                          <RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
                            <Grid>
                              <Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0"/>
                            </Grid>
                          </RepeatButton>
                        </Grid>

                        <ControlTemplate.Triggers>
                          <Trigger Property="Orientation" Value="Horizontal">

                            <Setter Property="LayoutTransform" TargetName="GridRoot">
                              <Setter.Value>
                                <RotateTransform Angle="-90"/>
                              </Setter.Value>
                            </Setter>

                            <Setter TargetName="PART_Track" Property="Orientation" Value="Vertical"/>

                            <Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
                            <Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
                            <Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
                            <Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
                          </Trigger>
                        </ControlTemplate.Triggers>
                      </ControlTemplate>
                    </Setter.Value>
                  </Setter>
                </Style>
              </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
          </ResourceDictionary>
        </Style.Resources>
      </Style>
    </Style.BasedOn>
  </Style>

	<Style x:Key="datagridStyleResumoFinanceiro" TargetType="{x:Type Custom:DataGridControl}" BasedOn="{StaticResource  DataGridStyle}">
		<Style.Resources>
			<ResourceDictionary>
				<ResourceDictionary.MergedDictionaries>
					<ResourceDictionary>
						<Style TargetType="{x:Type Custom:DataRow}">
							<Style.Triggers>
								<DataTrigger Binding="{Binding FatorLiquidacaoNota}" Value="0">
									<Setter Property="Foreground" Value="{DynamicResource VermelhoBrush}" />
								</DataTrigger>
							</Style.Triggers>
							<Setter Property="Custom:TableView.FixedColumnSplitterStyle" Value="{StaticResource basicSplitter_style}"/>
							<Setter Property="SelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
							<Setter Property="InactiveSelectionBackground" Value="{DynamicResource RowSelectionBackgroundColor}"/>
							<Setter Property="SelectionForeground" Value="{DynamicResource FontColor}"/>
							<Setter Property="InactiveSelectionForeground" Value="{DynamicResource FontColor}"/>
						</Style>
					</ResourceDictionary>
				</ResourceDictionary.MergedDictionaries>
			</ResourceDictionary>
		</Style.Resources>
	</Style>

</ResourceDictionary>